import { ref, computed } from "vue";
import { defineStore } from "pinia";
import pinia from "@/stores/index";
export const useBreadcrumbStoreHook = defineStore("breadcrumb", () => {
  const breadcrumbList = ref([]);
  function changeBreadcrumbList(data) {
    breadcrumbList.value = data;
  }
  return { breadcrumbList, changeBreadcrumbList };
});
// 持久化
export function useBreadcrumbStore() {
  return useBreadcrumbStoreHook(pinia);
}
